export const time = (timeStamp,type) => {
    if(!timeStamp) return null;
    var time=new Date(timeStamp+'000'-0);
    var year=time.getFullYear();
    var month=time.getMonth()+1;
    var day=time.getDate();
    var hours=time.getHours();
    var minute=time.getMinutes();
    var second=time.getSeconds();
    if(type==1) return `${year}年${month}月${day}日`;
    if(type==2) return `${year}/${month}/${day}`;
    if(type==3) return `${year}/${month}/${day} ${hours}:${minute}:${second}`;
};
export const orderType=(type)=>{
    if(!type) return null;
    return type=="public"? "公共订单":"私人订单";
}